<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台首页</title>
    <style>
        .welcome-container {
            text-align: center;
            padding: 50px 0;
        }
        .welcome-title {
            font-size: 24px;
            margin-bottom: 20px;
            color: #333;
        }
        .welcome-content {
            font-size: 16px;
            color: #666;
            margin-bottom: 30px;
        }
        .stat-card {
            background-color: #fff;
            border-radius: 5px;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        .stat-title {
            font-size: 16px;
            color: #666;
            margin-bottom: 10px;
        }
        .stat-value {
            font-size: 24px;
            font-weight: bold;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="layui-container">
        <div class="welcome-container">
            <h1 class="welcome-title">欢迎使用后台管理系统</h1>
            <p class="welcome-content">当前用户: {{ session.username }}</p>
        </div>

        <div class="layui-row">
            <div class="layui-col-md4">
                <div class="stat-card">
                    <div class="stat-title">用户数量</div>
                    <div class="stat-value">{{ user_count }}</div>
                </div>
            </div>
            <div class="layui-col-md4">
                <div class="stat-card">
                    <div class="stat-title">角色数量</div>
                    <div class="stat-value">{{ role_count }}</div>
                </div>
            </div>
            <div class="layui-col-md4">
                <div class="stat-card">
                    <div class="stat-title">菜单数量</div>
                    <div class="stat-value">{{ menu_count }}</div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 可以在这里添加图表等交互元素
    </script>
</body>
</html>